@import '../../style/variable.scss';
@import '../../style/ellipsis.scss';

.xxm-nav-bar {
    position: relative;
    text-align: center;
    user-select: none;
    height: $nav-bar-height;
    line-height: $nav-bar-height;
    background-color: $nav-bar-background-color;

    &__content {
      position: relative;
      height: 100%;
    }

    &__text {
      display: inline-block;
      vertical-align: middle;
      margin: 0 -$padding-md;
      padding: 0 $padding-md;
      color: $nav-bar-text-color;

      &--hover {
        background-color: #fff;
      }
    }

    &__arrow {
      vertical-align: middle;
      font-size: $nav-bar-arrow-size;
      color: $nav-bar-text-color;

      + .xxm-nav-bar__text {
        margin-left: -20px;
        padding-left: 25px;
      }
    }

    &--fixed {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
    }

    &__title {
      max-width: 100%;
      height: 100%;
      margin: 0 auto;
      color: $nav-bar-title-text-color;
      font-weight: 700;
      font-size: $nav-bar-title-font-size;
      display: flex;
      // align-self: flex-end;
      align-items: center;
      justify-content: flex-start;
      padding: 36px 28px 0;
    }

    &__left,
    &__right {
      position: absolute;
      top: 0;
      bottom: 0;
      display: flex;
      align-items: center;
      font-size: $font-size-md;
    }

    &__left {
      left: $padding-md;
    }

    &__right {
      right: $padding-md;
    }
  }
